package com.iw.test.db;

import javax.annotation.Resource;

import org.junit.Test;

import com.iw.adoms.entity.DepartmentType;
import com.iw.adoms.service.DepartmentTypeService;

public class JDepartmentTypeAction extends DBBase {

	@Resource
	private DepartmentTypeService departmentTypeService;

	@Test
	public void testSave() {
		try {
			DepartmentType type = new DepartmentType();
			type.setMemo("test for not null");
			departmentTypeService.save(type);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
